package top.laoshuzi.designpatterns.base.created.prototype.kotlin

/**
 * 具体原型1
 */
class ConcretePrototype1(private var name: String) : Prototype {

    override fun clone(): Prototype {
        return ConcretePrototype1(this.name)
    }

    override fun getName(): String {
        return this.name
    }

    override fun setName(name: String) {
        this.name = name
    }

    override fun toString(): String {
        return "ConcretePrototype1(name='$name')"
    }

}